package cn.kgc.mcartoon.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 漫画评论表
 * </p>
 *
 * @author christopher
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mm_cartoon_comment")
public class MmCartoonCommentDO extends Model<MmCartoonCommentDO> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
      @TableId(value = "commentId", type = IdType.AUTO)
    private Long commentid;

    /**
     * 类型   1-->评论漫画；2-->回复评论
     */
    private Integer type;

    /**
     * 漫画表主键ID
     */
    @TableField("cartoonId")
    private Long cartoonid;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论人用户ID
     */
    @TableField("userId")
    private Long userid;

    /**
     * 评论添加时间
     */
    @TableField("addTime")
    private Date addtime;

    /**
     * 回复评论的主键ID
     */
    @TableField("replyCommentId")
    private Long replycommentid;

    /**
     * 创建人
     */
    @TableField("createdUserId")
    private Long createduserid;

    /**
     * 修改人
     */
    @TableField("updatedUserId")
    private Long updateduserid;

    /**
     * 是否删除(0:否,1:是)
     */
    @TableField("isDelete")
    private Integer isdelete;


    @Override
    protected Serializable pkVal() {
        return this.commentid;
    }

}
